package com.wyh.service.feemanagementservice;

import com.wyh.domain.po.feemanagementpo.BillingItemss;
import com.wyh.domain.po.feemanagementpo.Contract;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wyh.domain.po.feemanagementpo.Customers;
import com.wyh.domain.po.feemanagementpo.Resourcees;

import java.util.List;

/**
 * <p>
 * 合同表 服务类
 * </p>
 *
 * @author ggt
 * @since 2024-05-29
 */
public interface IContractService extends IService<Contract> {

    List<Resourcees> getResorceByCustId(Integer customId);

    List<Customers> getCustomerByResourceId(Integer resourceId);

    //分页查询
    List<Customers> getCustomerByResourceIdPage(Integer resourceId,Integer page,Integer size);

    List<Contract> getContractByResourceId(Integer resourceId);

    Contract getContractByCustomerIdAndResource(Integer customerId,Integer resourceId);

    //通过合同表id->合同费项表(contractitem)->计费项目表(billingitems)
    List<BillingItemss> getItemsContractId(Integer contractId);

    Integer getHomeownerByResourceId(Integer resourceId);

    List<Resourcees> getResorceByCustId(List<Integer> customIdList);
}
